package org.cttic.visualization.visualization.controller;

import org.cttic.visualization.visualization.service.TrackQuery;
import org.cttic.visualization.visualization.z_service.z_TrackQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.ParseException;

/**
 * @author shkstart
 * @create 2020-04-30 13:41
 * 2.3.2车辆轨迹点查询接口
 */
@RestController
@RequestMapping(value = "/trackQuery")
@CrossOrigin
public class TrackQueryController {
    @Autowired
    private  TrackQuery trackQuery;
    //@RequestMapping(value = "/track")
    public String informationTrackQuery(@RequestBody String jsonData){
        return trackQuery.trackQuery(jsonData);
    }

    @Autowired
    z_TrackQuery z_trackQuery;
    @RequestMapping(value = "/track")
    public String z_informationTrackQuery(@RequestBody String jsonData) throws ParseException {
        return z_trackQuery.z_trackQuery(jsonData);
    }


}
